<template>
  <div class="page">
    <el-pagination layout="prev, pager, next" :total="totals"  @current-change="search" :page-size="2"> </el-pagination>
  </div>
</template>

<script>
export default {

  props:["totals"],
  methods:{
     search(n){
         this.$emit("search",n)
     } 
  }

};
</script>

<style lang="stylus" scoped>
.page
    width 100%
.el-pagination
    margin-top 10px
    text-align right
   
</style> 